package com.aijk.ehm.api;

import com.aijk.commons.exception.ErrorCodeException;
import com.aijk.ehm.model.EhmCompanyDept;
import com.aijk.ehm.model.dto.EhmCompanyDeptDto;
import com.aijk.ehm.model.qo.EhmCompanyDeptQo;
import com.aijk.ehm.model.vo.EhmCompanyDeptVo;
import com.github.pagehelper.PageInfo;

import java.util.List;

public interface EhmCompanyDeptApi {
    Long save(EhmCompanyDeptDto bean) throws ErrorCodeException;

    void update(EhmCompanyDeptDto bean) throws ErrorCodeException;

    EhmCompanyDeptVo findOne(Long id) throws ErrorCodeException;

    List<EhmCompanyDeptVo> list(EhmCompanyDeptQo qo);

    void deleteById(Long id) throws ErrorCodeException;

    int count(EhmCompanyDeptQo qo);

    PageInfo<EhmCompanyDeptVo> page(EhmCompanyDeptQo qo);
}